package com.fadadianqi.logistics.customer.model;


import com.fadadianqi.commons.BaseObject;

/**
 * 顾客信息
 *
 * @author aroot
 */
public class Customer extends BaseObject {

    /**
     *
     */
    private static final long serialVersionUID = 3458804059478246872L;

    public static final String PROP_VILLAGE_ID = "villageId";
    public static final String PROP_NAME = "name";
    public static final String PROP_ID = "id";
    public static final String PROP_TOWN_NAME = "townName";
    public static final String PROP_VILLAGE_NAME = "villageName";
    public static final String PROP_PINYIN = "pinyin";
    public static final String PROP_INITIAL = "initial";

    public static final String PROP_INDEXED = "indexed";

    public static final String PROP_TOWN_ID = "townId";

    public static final String PROP_TEL = "tel";

    public static final String PROP_MOBILE = "mobile";

    public static final String PROP_MEMO = "memo";

    private String name;
    private String pinyin;
    private String memo;
    private String townId;
    private String villageId;
    private String mobile; // 移动电话
    private String tel; // 固定电话
    private Boolean indexed = Boolean.FALSE;

    private Double balance; // 个人存款
    private Double debt; // 个人债务

    public Double getDebt() {
        return debt;
    }

    public void setDebt(Double debt) {
        this.debt = debt;
    }

    public Double getBalance() {
        if (balance == null) {
            balance = 0D;
        }
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public Boolean getIndexed() {
        return indexed;
    }

    public void setIndexed(Boolean indexed) {
        this.indexed = indexed;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getTownId() {
        return townId;
    }

    public void setTownId(String townId) {
        this.townId = townId;
    }

    public String getVillageId() {
        return villageId;
    }

    public void setVillageId(String villageId) {
        this.villageId = villageId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }
}
